.hot-radar-container {
  padding: 24px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 确保所有子元素不超出容器 */
.hot-radar-container * {
  box-sizing: border-box;
  max-width: 100%;
}

.hot-radar-header {
  text-align: center;
  margin-bottom: 16px;
  margin-top: 8px;
}

.hot-radar-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 4px;
  margin-top: 0;
}

.hot-radar-header .header-icon {
  margin-right: 12px;
  color: #ff4d4f;
  animation: flame 1.5s ease-in-out infinite;
}

@keyframes flame {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(-3deg);
  }
  50% {
    transform: scale(1.05) rotate(3deg);
  }
  75% {
    transform: scale(1.1) rotate(-3deg);
  }
}

.hot-radar-header .header-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.hot-radar-filters {
  margin-bottom: 24px;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
}

.hot-radar-content {
  min-height: 400px;
  /* 优化滚动性能 */
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

/* 优化网格性能 */
.hot-radar-content .grid {
  /* 使用GPU加速 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* 优化渲染性能 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hot-radar-pagination {
  margin-top: 32px;
  text-align: center;
}

/* 下拉刷新指示器 */
.pull-to-refresh-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(to bottom, #1890ff, rgba(24, 144, 255, 0));
  color: #fff;
  font-size: 14px;
  z-index: 1001;
  transition: height 0.2s ease, opacity 0.2s ease;
  overflow: hidden;
}

.pull-to-refresh-indicator .anticon {
  font-size: 16px;
}

/* 无限滚动加载指示器 */
.infinite-scroll-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #666;
  font-size: 14px;
}

.infinite-scroll-loading .anticon {
  font-size: 18px;
  color: #1890ff;
}

/* 没有更多数据提示 */
.no-more-data {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 14px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .hot-radar-container {
    padding: 12px;
  }

  .hot-radar-header {
    margin-top: 8px;
    margin-bottom: 12px;
  }

  .hot-radar-header h1 {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .hot-radar-header .header-subtitle {
    font-size: 12px;
  }
}

/* 触摸反馈效果 */
.touch-feedback {
  position: relative;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.touch-feedback:active {
  transform: scale(0.98);
  opacity: 0.8;
}

/* 添加波纹效果 */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* Loading container */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* 平台卡片网格布局 */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* 平台卡片 */
.platform-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.platform-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.platform-card .ant-card-head {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 12px;
  min-height: auto;
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.platform-card-header .anticon {
  color: #ff4d4f;
  font-size: 16px;
}

.platform-name {
  color: #333;
}

.platform-card .ant-card-body {
  padding: 0;
  max-height: 500px;
  overflow-y: auto;
}

/* 热点列表 */
.platform-items-list {
  display: flex;
  flex-direction: column;
}

.hot-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.hot-item-row:hover {
  background: #fafafa;
}

.hot-item-row:last-child {
  border-bottom: none;
}

/* 排名徽章 */
.item-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #f5f5f5;
  color: #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.hot-item-row:nth-child(1) .item-rank {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #fff;
}

.hot-item-row:nth-child(2) .item-rank {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #666;
}

.hot-item-row:nth-child(3) .item-rank {
  background: linear-gradient(135deg, #cd7f32 0%, #e6a857 100%);
  color: #fff;
}

/* 内容区域 */
.item-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.item-title {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #999;
}

.item-heat {
  color: #ff4d4f;
  font-weight: 500;
}

.item-heat::before {
  content: '🔥 ';
}

.item-category {
  padding: 2px 6px;
  background: #f0f0f0;
  border-radius: 3px;
  font-size: 10px;
  color: #666;
}

/* 操作按钮容器 */
.item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

/* 按钮基础样式 */
.item-action-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
  border: none;
  outline: none;
}

.item-action-btn:active {
  transform: scale(0.95);
}

/* 查看按钮 - 轮廓样式 */
.item-action-view {
  background: transparent;
  color: #1890ff;
  border: 1px solid #d9d9d9;
}

.item-action-view:hover {
  background: #e6f7ff;
  border-color: #1890ff;
  color: #1890ff;
}

/* 创作按钮 - 填充样式 */
.item-action-create {
  background: #1890ff;
  color: #fff;
}

.item-action-create:hover {
  background: #40a9ff;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .platform-card .ant-card-head {
    padding: 10px 12px;
  }

  .platform-card-header {
    font-size: 14px;
    gap: 6px;
  }

  .platform-card-header .anticon {
    font-size: 16px;
  }

  .platform-card .ant-card-body {
    max-height: 400px;
  }

  .hot-item-row {
    padding: 8px 10px;
    gap: 8px;
  }

  .item-rank {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .item-title {
    font-size: 12px;
  }

  .item-meta {
    font-size: 10px;
  }

  .item-actions {
    gap: 4px;
  }

  .item-action-btn {
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* 滚动条美化 */
.platform-card .ant-card-body::-webkit-scrollbar {
  width: 6px;
}

.platform-card .ant-card-body::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 3px;
}

.platform-card .ant-card-body::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}
/* 头脑风暴按钮 - 渐变样式 */
.item-action-brainstorm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-action-brainstorm:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.item-action-brainstorm .anticon {
  font-size: 14px;
}

@media (max-width: 768px) {
  .item-action-brainstorm {
    padding: 3px 6px;
    font-size: 11px;
  }
  
  .item-action-brainstorm .anticon {
    font-size: 12px;
  }
}
